package cn.wolfcode.shop.common.exception;

import cn.wolfcode.shop.common.util.CodeMsg;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class BusinessException extends RuntimeException {

    public CodeMsg codeMsg;

    public BusinessException(CodeMsg codeMsg){
        super(codeMsg.getMsg());
        this.codeMsg = codeMsg;
    }

    public BusinessException(){}
}